let express = require("express");

let reouter = express.Router();
// 加载模型数据库模块
let { test } = require("./config/dbconfig");
// 模块化路由
reouter.get("/user", async (req, res, next) => {
  const result = await test.findAll({ raw: true });
  res.json({
    code: 200,
    data: result,
  });
});

module.exports = reouter;
